<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img{
            width: 150px;
            border:5px solid pink;
            border-radius: 50%;
            /* 过渡到本身上,谁做动画给谁加 */
            transition: all 20s;
        }
        img:hover{
            transform:rotate(360deg);
        }
    </style>
</head>
<body>
    <img src="images/pic.jpg">
</body>
</html>